using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PickItem : Pick<ItemData>
{

    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.F) && isTrigger)
            pick();
    }
    public new void pick()
    {
        ItemsBackpackManager.instance.addItem(data, 1);
        base.pick();
    }
}
